package com.jxdinfo.hussar.cloud.module.example.lift.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * 升降机异常通知(LiftNotice)查询DTO类
 *
 * @author S
 * @since 2023-06-12 16:38
 */
@ApiModel(description = "升降机异常通知SearchDTO")
@Data
public class LiftNoticeSearchDto  {
	
	private static final long serialVersionUID = 1L;

	private Integer page;
	private Integer rows;

	public Integer getPage() {
	    return page;
	}
	public void setPage(Integer page) {
	    this.page = page;
	}
	public Integer getRows() {
	    return rows;
	}
	public void setRows(Integer rows) {
	    this.rows = rows;
	}

    /**
     * 升降机id，lift.id
     */
    @ApiModelProperty(value = "升降机id，lift.id")
	private String liftId;
    /**
     * 通知级别，1预警，2报警，3设备故障
     */
    @ApiModelProperty(value = "通知级别，1预警，2报警，3设备故障")
	private Integer noticeLevel;
    /**
     * 通知类型，1载重，2运行速度，3高度，4X轴倾斜角度，5Y轴倾斜角度，6风速，7运载人数，8楼层
     */
    @ApiModelProperty(value = "通知类型，1载重，2运行速度，3高度，4X轴倾斜角度，5Y轴倾斜角度，6风速，7运载人数，8楼层")
	private Integer noticeType;

    /**
     * 创建时间开始
     */
    @ApiModelProperty("创建时间开始")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date tyCreateTimeStart;
    /**
     * 创建时间结束
     */
    @ApiModelProperty("创建时间结束")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date tyCreateTimeEnd;
    /**
     * 项目编号
     */
    @NotBlank(message = "项目编号不能为空")
    @ApiModelProperty("项目编号")
    private String tyProjectCode;
    /**
     * 发送时间
     */
    @ApiModelProperty("发送时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date sendTime;

    @ApiModelProperty("发送时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date sendDate;
	

}
